<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>商品管理系统 - Layui</title>
    <link rel="stylesheet" th:href="@{/libs/layui/css/layui.css}">
    <link rel="stylesheet" th:href="@{/libs/layer/mobile/need/layer.css}">
    <style>
        .layui-table-view .layui-form-checkbox[lay-skin=primary] i {
            margin-top:8px;
        }
    </style>
</head>
<body>

<div>
<!--    <input id="basePathText" hidden value="/springboot" />-->
</div>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo layui-hide-xs layui-bg-black">商品系统</div>
        <!-- 头部区域（可配合layui 已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <!-- 移动端显示 -->
            <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
                <i class="layui-icon layui-icon-spread-left"></i>
            </li>

            <li class="layui-nav-item layui-hide-xs"><a href="">nav 1</a></li>

            <li class="layui-nav-item">
                <a href="javascript:;">nav groups</a>
                <dl class="layui-nav-child">
                    <dd><a href="">menu 11</a></dd>

                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item"><a href="javascript:void(0);">今天是<span id="day"></span>&nbsp;&nbsp;&nbsp;
                <span id="time"></span>
            </a></li>
            <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                <a href="javascript:;">
                    <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">

                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">管理员资料</a></dd>
                    <dd><a href="">设置</a></dd>
                    <dd><a href="">退出系统</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                <a href="javascript:;">
                    <i class="layui-icon layui-icon-more-vertical"></i>
                </a>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">蔬菜管理</a>
                    <dl class="layui-nav-child">
                        <dd><a th:href="@{/good/sel}">蔬菜信息管理</a></dd>

                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">666</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">list 1</a></dd>
                        <dd><a href="javascript:;">list 2</a></dd>
                        <dd><a href="">超链接</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="javascript:;">click menu item</a></li>
                <li class="layui-nav-item"><a href="">the links</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
            <legend>蔬菜信息管理</legend>
        </fieldset>



            <table class="layui-hide" id="demo" lay-filter="test"></table>

            <script type="text/html" id="barDemo">

                <a class="layui-btn layui-btn-xs" lay-event="more">更多 <i class="layui-icon layui-icon-down"></i></a>

            </script>

        </div>

        <div class="layui-footer">
            <!-- 底部固定区域 -->
            底部固定区域
        </div>
    </div>




<!--    添加界面-->
    <div id="insertPage" style="display: none">
        <div class="layui-form-item">
            <label class="layui-form-label">商品名称：</label>
            <div class="layui-input-block">
                <input type="text" name="title" id="addGoodsName" placeholder="名称" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" >
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">商品数量：</label>
            <div class="layui-input-block">
                <input type="text" name="title" id="addGoodsAmount" placeholder="数量" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" >
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">商品类型：</label>
            <select name="addGoodsType" id="addGoodsType" lay-verify="required" lay-search="" class="layui-select" >
                <option value='11'>蔬菜</option>
                <option value='12'>水果</option>
                <option value='13'>副食品</option>
                <option value='14'>日用品</option>
            </select>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">备注：</label>
            <div class="layui-input-block">
                <input type="text" name="title" id="addRemark" placeholder="备注" lay-verify="title" autocomplete="off" value="" class="layui-input" style="margin-top: 15px;width: 200px" >
            </div>
        </div>



        <button class="layui-btn" id="insertExam" style="margin-left: 110px;">确认添加</button>
    </div>


    <script type="text/javascript" th:src="@{/static/layui/layui.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/dateTime.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/jquery-1.8.3.min.js}"></script>
    <script type="text/javascript" th:src="@{/static/layer/layer.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/phoenix/text.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/laydate.js}"></script>

    <script type="text/javascript">
        //显示实时时间
        $(function () {
            showDay();
            setInterval('showTime()');
        })
    </script>


</body>
</html>
